package com.glodon.ggzy.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

/**
 *特别公告表
 */
@Entity
@Table(name = "GG_CQ_TBGG")
public class GgCqTbgg implements java.io.Serializable {

	// Fields    
	/** */
	private String id;

	/**标题 */
	private String name;

	/**内容 */
	private String text;

	/**发布日期 */
	private Date publishDate;

	/**公告日起 */
	private Date startDate;

	/**公告日止 */
	private Date endDate;

	// Constructors

	/** default constructor */
	public GgCqTbgg() {
	}

	/** full constructor */
	public GgCqTbgg(String name, String text, Date publishDate, Date startDate, Date endDate) {
		this.name = name;
		this.text = text;
		this.publishDate = publishDate;
		this.startDate = startDate;
		this.endDate = endDate;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "ID", unique = true, nullable = false, length = 100)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "NAME", length = 400)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "TEXT")
	public String getText() {
		return this.text;
	}

	public void setText(String text) {
		this.text = text;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "PUBLISH_DATE", length = 7)
	public Date getPublishDate() {
		return this.publishDate;
	}

	public void setPublishDate(Date publishDate) {
		this.publishDate = publishDate;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "START_DATE", length = 7)
	public Date getStartDate() {
		return this.startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "END_DATE", length = 7)
	public Date getEndDate() {
		return this.endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

}
